package com.wiyun.engine.skeleton;

import com.wiyun.engine.nodes.Sprite;
import com.wiyun.engine.types.WYColor3B;

public class Role extends Sprite {
	private String _name; //姓名
	private WYColor3B _nameColor;//名字颜色
	private int _level;//等级
	private int _exprience;//经验
	private float _dodge;//闪避
	private float _hit;//命中率
	private float _speed;//速度
	private float _attackspeed;//攻速
	private float _attackRange;//攻击范围
	private float _seekRange;//索敌范围
	private int _life;//当前生命值
	private WYColor3B _leftColor;//生命条颜色
	private int _leftWidth;//生命值宽度
	private int _leftMaxWidth;//生命值总宽度
	private int _mana;//当前魔法值
	private WYColor3B _manaColor;//魔法条颜色
	private int _manaWidth;//魔法宽度
	private int _manaMaxWidth;//魔法总宽度 
	
	private float _defense;//防御
	//private DefenseType _defenseType;//护甲类型
	private float _burst;//暴击率
	
	private float _defenseSet = 0.6f;//防御减的伤害比
	private boolean isInvincible=false;//是否无敌
	private DirectionType direction;//朝向
	
	protected Role(int pointer) {
		super(pointer);
	}

	public void make(String imagePath, DirectionType defaultDirection)
	{
		
	}
	
	public int GetMaxAttackValue()
	{return 0;}
	
	public int GetMinAttackValue()
	{return 0;}
	
	public float GetDefenseRate()
	{
		return 1/(1+_defenseSet);
	}
	
	
}
